import request from '@/util/request'



export default {

    findworker(){
        return request({
            url: '/worker/list',
            method: 'get',
        })
    },

    findByPage(page,pageSize){
        return request({
            url: `/worker/findByPage/${page}/${pageSize}`,
            method: 'get',
        })
    },

    search(page,pageSize,data){
        return request({
            url:`/worker/search/${page}/${pageSize}`,
            method:'post',
            data
        })

    },

    save(url,method,data){
        return request({
            url,
            method,
            data
        })
    },

    deleteworker(ids){
        return request({
            url:`/worker/delete/${ids}`,
            method:'delete'
        })

    }

}